package com.yuwen.mapper;

import com.yuwen.pojo.Data;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface DataMapper {
    // 批量添加数据
    public int addBatchData(List<Data> dataList);
    // 根据id查询数据
    public Data findDataById(Long id);

    // 根据数据id修改
    public int updateDataById(Data data);

    //===========================================================
    //插入一条数据
    public int insertOneData(Data data);

    public int deleteOneData(Long id);

    public List<Data> findDataByY(double y);

    public List<Data> queryAll();

    public void deleteAll();

    public Data query(Long id);

    public int updateData(Data data);

}
